/*
 * @Description:Animal
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-06 14:16:42
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-06 14:18:52
 */

public abstract class Animal {
  private String name;

  public Animal() {
  }

  public Animal(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  // 抽象方法
  public abstract void eat();

  public abstract void sleep();
}
